#pragma once
#include "glhead.h"
#include "globe.h"
#include "TouchScreen.h"
#include <math.h>
#include <vector>

#ifndef GLOBAL_H
#define GLOBAL_H

#ifndef M_PI
#define M_PI	3.14159268
#endif
#define GRA_PI  180/M_PI
#define DGR_PI	M_PI/180

#define Window_Width 800
#define Window_Height 600

#define Toolbar_Width	100
#define Draw_Area_X	2.0
#define Draw_Area_Y 2.0
#define Offset_X 100
#define Offset_Y 100

#define MAXTEXTURE 3

#define PARAM_X	-0.9
#define PARAM_Y 0.6
#define PARAM_HEIGHT	0.05
#define FONT_SIZE	12

extern int max_globe_tex;
extern GLuint		globeTex[5];
extern GLuint		texture[MAXTEXTURE];
extern GLuint		universeTex;
extern GLuint		test_texture;

extern globe* glo;

extern int base;

extern float angle_x;
extern float angle_y;

extern float last_x;
extern float last_y;

extern float lookat[16];
extern float pers[16];
extern float orth[16];
extern float orth_heading[16];

extern int cur_width;
extern int cur_height;

extern float z_depth;

extern TouchScreen ts;

#endif
